<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.2-20121118"/>
<title>SensorFramework: src/saxion/sensorframework/structuur/Sensor.java Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">SensorFramework
   &#160;<span id="projectnumber">1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2-20121118 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_4c90d63c55d0a4a7ceb1e868f259078c.html">src</a></li><li class="navelem"><a class="el" href="dir_114c386281b70752c2da546ca7af09c9.html">saxion</a></li><li class="navelem"><a class="el" href="dir_55fa4d4c3ec59703226079a577bba96c.html">sensorframework</a></li><li class="navelem"><a class="el" href="dir_c7ca348ab3b08f5c4efe2c048f23a03e.html">structuur</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Sensor.java</div>  </div>
</div><!--header-->
<div class="contents">
<a href="a00025.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="keyword">package </span>saxion.sensorframework.structuur;</div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;</div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="keyword">import</span> java.util.List;</div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;</div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="keyword">import</span> javax.xml.bind.annotation.XmlAccessType;</div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="keyword">import</span> javax.xml.bind.annotation.XmlAccessorType;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="keyword">import</span> javax.xml.bind.annotation.XmlRootElement;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;@XmlRootElement</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;@XmlAccessorType(XmlAccessType.FIELD)</div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="code" href="a00006.html">   18</a></span>&#160;public class <a class="code" href="a00006.html" title="The Sensor class wich defines a sensor with its datastructure(Types and fields).">Sensor</a> {</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="code" href="a00006.html#a9e9342ed2ae06ec9f3d4a532d8891c92">   20</a></span>&#160;    <span class="keyword">private</span> <span class="keywordtype">int</span> <a class="code" href="a00006.html#a9e9342ed2ae06ec9f3d4a532d8891c92">id</a>;</div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="code" href="a00006.html#a9711a46c4fc8c9157a3ab315c17b319a">   21</a></span>&#160;    <span class="keyword">private</span> String <a class="code" href="a00006.html#a9711a46c4fc8c9157a3ab315c17b319a">name</a>;</div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="code" href="a00006.html#a26ea5869c953f51704c502287fd6ce3a">   22</a></span>&#160;    <span class="keyword">private</span> String <a class="code" href="a00006.html#a26ea5869c953f51704c502287fd6ce3a">description</a>;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="code" href="a00006.html#a9a7cbdc3e8cd7437aa27c9cde3bbb38d">   24</a></span>&#160;    <span class="keyword">private</span> List&lt;DataStruc&gt; <a class="code" href="a00006.html#a9a7cbdc3e8cd7437aa27c9cde3bbb38d">datastruc</a>;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="code" href="a00006.html#af9e3ecd9b9a1c5bb84ae343145f95c7b">   26</a></span>&#160;    <span class="keyword">public</span> <a class="code" href="a00006.html#af9e3ecd9b9a1c5bb84ae343145f95c7b">Sensor</a>() {</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    }</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="code" href="a00006.html#a1d1c42392bc411f69556170b27476df0">   36</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="a00006.html#a1d1c42392bc411f69556170b27476df0" title="Get the id of the Sensor wich is generated by the database after insertion.">getId</a>() {</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        <span class="keywordflow">return</span> id;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    }</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="code" href="a00006.html#a78be92a71e70669374e5eff6eb42c8a0">   45</a></span>&#160;    <span class="keyword">public</span> String <a class="code" href="a00006.html#a78be92a71e70669374e5eff6eb42c8a0" title="Get the Sensor&#39;s name.">getName</a>() {</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        <span class="keywordflow">return</span> name;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    }</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="code" href="a00006.html#ad7c30644e3da9d302ad40ab8cccab941">   54</a></span>&#160;    <span class="keyword">public</span> String <a class="code" href="a00006.html#ad7c30644e3da9d302ad40ab8cccab941" title="Get the Sensor&#39;s description.">getDescription</a>() {</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        <span class="keywordflow">return</span> description;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    }</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="code" href="a00006.html#a7e3fdf993299a9dc99307d4ab602c009">   63</a></span>&#160;    <span class="keyword">public</span> List&lt;DataStruc&gt; <a class="code" href="a00006.html#a7e3fdf993299a9dc99307d4ab602c009" title="Get the list of the Sensor&#39;s datastructure.">getDatastructuur</a>() {</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <span class="keywordflow">return</span> datastruc;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    }</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="code" href="a00006.html#a6c4efd6e3c79b2ced953c8315473e019">   72</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="a00006.html#a6c4efd6e3c79b2ced953c8315473e019" title="Set the Id of the Sensor.">setId</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>) {</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        this.<span class="keywordtype">id</span> = id;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    }</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="code" href="a00006.html#a341e9e81128620d21ebd716dfb20e75f">   81</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="a00006.html#a341e9e81128620d21ebd716dfb20e75f" title="Set the name of the Sensor.">setName</a>(String name) {</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        this.name = name;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    }</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="code" href="a00006.html#ab1ec68d17fb8b2fd6a23339eaa5f8eb3">   90</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="a00006.html#ab1ec68d17fb8b2fd6a23339eaa5f8eb3" title="Set the description of the Sensor.">setDescription</a>(String description) {</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        this.description = description;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    }</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="code" href="a00006.html#aeb49167d34c93be7b180ed83ea41b437">   99</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="a00006.html#aeb49167d34c93be7b180ed83ea41b437" title="Set the Datastructure of the Sensor.">setDatastructuur</a>(List&lt;DataStruc&gt; datastruc) {</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        this.datastruc = datastruc;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    }</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="code" href="a00006.html#add2ea5cb706c2220b71453d0b70f00ba">  108</a></span>&#160;    <span class="keyword">public</span> String <a class="code" href="a00006.html#add2ea5cb706c2220b71453d0b70f00ba" title="Returns the Sensor object as a String.">toString</a>() {</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        <span class="keywordflow">return</span> <span class="stringliteral">&quot;Name: &quot;</span> + this.name + <span class="stringliteral">&quot;; Description: &quot;</span> + this.description;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    }</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;}</div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Feb 1 2013 11:24:57 for SensorFramework by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.2-20121118
</small></address>
</body>
</html>
